/**
 * 
 */
package cn.jdbc.service.reply;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import cn.jdbc.dao.reply.ReplyMapper;
import cn.jdbc.pojo.Reply_detail;

/**
 * @author 你始终不懂
 *
 */
@Service("ReplyService")
public class ReplyServiceImpl implements ReplyService {
	@Resource
	private ReplyMapper replyMapper;

	@Override
	public List<Reply_detail> getReplyList(int invid) {
		List<Reply_detail> replyLsit=null;
		try {
			replyLsit=replyMapper.getReplyList(invid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return replyLsit;
	}

	@Override
	public boolean deleteRely(int invid) {
		boolean falg=false;
		try {
			if(replyMapper.deleteRely(invid)>0){
				falg=true;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return falg;
	}

	@Override
	public boolean addRely(Reply_detail reply) {
		boolean falg=false;
		try {
			if(replyMapper.addRely(reply)>0){
				falg=true;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return falg;
	}
}
